package lohr.lang.dom;

import java.util.Collections;
import java.util.List;

/**
 * A static reference to a package.
 * 
 * @author ted stockwell
 *
 */
public class PackageName extends LohrElement {
	private List<IdentifierName> _nodes;
	private String _fullName;
	
	public PackageName(List<IdentifierName> nodes) {
		addChildren(_nodes= Collections.unmodifiableList(nodes));
		_fullName= "";
		for (IdentifierName identifierName:_nodes) {
			_fullName+= identifierName.getName();
		}
	}
	
	public List<IdentifierName> getIdentifierNames() {
		return _nodes;
	}
	
	public String getFullName() {
		return _fullName;
	}
}
